package models

import (
	"time"
)

type UserAlias struct {
	Id         string    `json:"id" gorm:"primaryKey;autoIncrement:false;type:varchar(64)"`
	UserId     string    `json:"userId" gorm:"primaryKey;autoIncrement:false;type:varchar(64)"`
	Type       int       `json:"type" gorm:"type:int8"`
	Alias      string    `json:"alias" gorm:"type:varchar(255)"`
	CreateTime time.Time `json:"createTime"  gorm:"type:timestamptz(6)"`
	CRUD
}

func (UserAlias) TableName() string {
	return "sys_user_alias"
}
